<?php defined('IN_PHPCMS') or exit('No permission resources.'); ?><?php include template("content","header"); ?>
<div class="nybanner">
<img src="<?php echo IMG_PATH;?>nybanner.jpg">
</div>
<div class="xinwen-box">
    <div class="common-width">
        <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"get\" data=\"op=get&tag_md5=d8d5f0277c2e5bcd81ba52bf655108bc&sql=select+n.thumb%2Cn.updatetime%2Cn.url%2Cn.description%2Cn.title%2Cnd.content+from+news+as+n%2C+news_data+as+nd+WHERE+n.catid%3D%24catid+and+n.id%3Dnd.id+and+n.id%3D%24id\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}pc_base::load_sys_class("get_model", "model", 0);$get_db = new get_model();$r = $get_db->sql_query("select n.thumb,n.updatetime,n.url,n.description,n.title,nd.content from news as n, news_data as nd WHERE n.catid=$catid and n.id=nd.id and n.id=$id LIMIT 20");while(($s = $get_db->fetch_next()) != false) {$a[] = $s;}$data = $a;unset($a);?><?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
        <div class="xinwen wow fadeInUp">
        	<div class="xinwen-time">
                <h1><?php echo $data['0']['title'];?></h1>
               	<h2>发布时间：<?php echo date('Y-m-d',$data[0]['updatetime']);?></h2>
            </div>
            <div class="xinwen-nrxq">
            <?php echo $data['0']['content'];?>
            </div>
            <div id="ar_fot">
        <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"get\" data=\"op=get&tag_md5=b1c0c98425dfdc97bb7cda6a9aeb1d94&sql=select+n.thumb%2Cn.updatetime%2Cn.url%2Cn.description%2Cn.title%2Cnd.content+from+news+as+n%2C+news_data+as+nd+WHERE+n.catid%3D%24catid+and+n.id%3Dnd.id+and+n.id%3C%24id+order+by+n.id+desc\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}pc_base::load_sys_class("get_model", "model", 0);$get_db = new get_model();$r = $get_db->sql_query("select n.thumb,n.updatetime,n.url,n.description,n.title,nd.content from news as n, news_data as nd WHERE n.catid=$catid and n.id=nd.id and n.id<$id order by n.id desc LIMIT 20");while(($s = $get_db->fetch_next()) != false) {$a[] = $s;}$data = $a;unset($a);?><?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
        <?php if(empty($data[0])) { ?>
            <h1 class="fl"><span>上一篇：</span><a href="javascript:;">没有了</a></h1>
        <?php } else { ?>
            <h1 class="fl"><span>上一篇：</span><a href="<?php echo $data['0']['url'];?>"><?php echo $data['0']['title'];?></a></h1>
        <?php } ?>
        <?php if(defined('IN_ADMIN')  && !defined('HTML')) {echo "<div class=\"admin_piao\" pc_action=\"get\" data=\"op=get&tag_md5=e4c48539e0424db092ea914d3757d535&sql=select+n.thumb%2Cn.updatetime%2Cn.url%2Cn.description%2Cn.title%2Cnd.content+from+news+as+n%2C+news_data+as+nd+WHERE+n.catid%3D%24catid+and+n.id%3Dnd.id+and+n.id%3E%24id+order+by+n.id+asc\"><a href=\"javascript:void(0)\" class=\"admin_piao_edit\">编辑</a>";}pc_base::load_sys_class("get_model", "model", 0);$get_db = new get_model();$r = $get_db->sql_query("select n.thumb,n.updatetime,n.url,n.description,n.title,nd.content from news as n, news_data as nd WHERE n.catid=$catid and n.id=nd.id and n.id>$id order by n.id asc LIMIT 20");while(($s = $get_db->fetch_next()) != false) {$a[] = $s;}$data = $a;unset($a);?><?php if(defined('IN_ADMIN') && !defined('HTML')) {echo '</div>';}?>
        <?php if(empty($data[0])) { ?>
            <h1 class="fr"><span>下一篇：</span><a href="javascript:;">没有了</a></h1>
        <?php } else { ?>
            <h1 class="fr"><span>下一篇：</span><a href="<?php echo $data['0']['url'];?>"><?php echo $data['0']['title'];?></a></h1>
        <?php } ?>
        <div class="clear"></div>
        <div class="bnt_box"><a href="?m=content&c=index&a=lists&catid=17" class="bnt_back">返回列表</a></div>
    </div>
        </div>
    </div>
    
</div>
<?php include template("content","footer"); ?>